package com.love.poetry.domain;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.love.poetry.domain.poetry.Verse;
import com.youboy.core.domain.AbstractDomain;

public class Category extends AbstractDomain {

	private static final long serialVersionUID = 1L;

	private String name;// 类目名称 name 例如：咏景卷
	private String path;// 类目连接 path 例如：/collage/咏景卷
	private String tags;// 类目标签词 tags 例如：景色,风景
	private int sort;// 排序 Sort 例如：1（注意设置值）
	private Category father;
	private List<Category> children = new ArrayList<Category>();

	private List<Verse> verses = new ArrayList<Verse>();

	public String getName() {
		return name;
	}

	public Category setName(String name) {
		this.name = name;
		return this;
	}

	public String getPath() {
		return path;
	}

	public Category setPath(String path) {
		this.path = path;
		return this;
	}

	public String getTags() {
		return tags;
	}

	public Category setTags(String tags) {
		this.tags = tags;
		return this;
	}

	public int getSort() {
		return sort;
	}

	public Category setSort(int sort) {
		this.sort = sort;
		return this;
	}

	public Category getFather() {
		return father;
	}

	public Category setFather(Category father) {
		this.father = father;
		return this;
	}

	public List<Category> getChildren() {
		if (null == this.children) {
			return Collections.emptyList();
		}
		return children;
	}

	public Category setChildren(List<Category> children) {
		this.children = children;
		return this;
	}

	public List<Verse> getVerses() {
		if (null == this.verses) {
			return Collections.emptyList();
		}
		return verses;
	}

	public Category setVerses(List<Verse> verses) {
		this.verses = verses;
		return this;
	}

}